1bashThis script uses envsubst to replace environment variables in a template file and outputs the result to a configuration file.envsubst < /nginx.conf.template > /etc/nginx/nginx.confexternal toolsenvsubst